﻿using System;
using CoreEx.Database.Metadata;

namespace CoreEx.Database.Mapping
{
    /// <summary>
    /// Represents a class that is capable of mapping a <see cref="Type"/> to a corresponding <see cref="TableInfo"/> instance.
    /// </summary>
    public interface ITableInfoMapper
    {
        /// <summary>
        /// Maps the <paramref name="type"/> to a corresponding <see cref="TableInfo"/> instance.
        /// </summary>
        /// <param name="type">The <see cref="Type"/> to map.</param>
        /// <returns><see cref="TableInfo"/></returns>
        TableInfo MapFrom(Type type);
    }
}
